package com.lili.collection.restful.config;

import com.lili.collection.core.config.InputConfig;
import com.lili.collection.core.domain.CollectCommonConfig;
import com.lili.collection.core.plugins.InputPlugin;
import com.lili.collection.core.support.ConfigFieldDef;
import com.lili.collection.restful.plugins.DataInputPlugin;
import lombok.Data;

/**
 *描述: 直接数据输入配置
 *@date: 2023/12/1  19:21
 *@author: lili
 */
@Data
public class DataInputConfig extends CollectCommonConfig implements InputConfig {

    /**
     * 处理数据
     */
    @ConfigFieldDef(type = ConfigFieldDef.Type.STRING, required = true)
    private String data;

    @Override
    public InputPlugin getPlugin() {
        return new DataInputPlugin();
    }
}